package com.dyg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dyg.model.Resource;
import com.dyg.model.User;

public interface UserMapper {

	public void insertUser(User user);

	public void deleteUserById(String userId);

	public void updateUser(User user);

	public User findUserById(String userId);

	public List<User> findUserList();

	public List<Resource> listAllResource(int userId);

	public User loadByUserName(@Param("username")String username);

	Integer add(User user);

}
